package com.wx.mall.sys.mapper;

import com.wx.mall.sys.entity.UserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author j
 * @since 2020-03-18
 */
public interface UserRoleMapper extends BaseMapper<UserRole> {

    @Select("select user_id from sys_user_role where role_id=#{roleId}")
    List<Integer> findByRoleId(Integer roleId);

    Integer findNum(Integer id);
}
